package club.ruanx.auth.token;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

/**
 * @author 阮胜
 * @date 2018/9/14 23:13
 */
public class UserToken extends UsernamePasswordAuthenticationToken {
    public UserToken(Object principal, Object credentials) {
        super(principal, credentials);
    }

    public UserToken(Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities) {
        super(principal, credentials, authorities);
    }
}
